export const leisType = (param:any) => {
    const protoType = Object.prototype.toString.call(param)
    switch (protoType){
        case '[object String]':return 'string'
        case '[object Number]':return 'number'
        case '[object Array]':return 'array'
        case '[object Boolean]':return 'boolean'
        case '[object Object]':return 'object'
        case '[object Undefined]':return 'undefined'
    }
}

export default {
    leisType
}
